package mlz.method;

//参数传递之引用数据类型
public class MethodDemo05 {
    public static void main(String[] args) {
        int[] arrs = new int[]{11,22,33,44};
        add(arrs);
        System.out.println(arrs[1]);//22 ? 100 ?  100
    }
    //定义方法
    public static void add(int[] arrs){
        System.out.println("方法内1:" + arrs[1]);
        arrs[1] = 100;
        System.out.println("方法内2:" + arrs[1]);
    }
}
